<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/21
 * Time: 15:41
 */

namespace app\weixin\controller;
use think\Request;
use think\Db;

class Guanlianjian extends Base
{
    public function index(){
        $title = '管理案件';
        $this->assign('title',$title);
        $data = Db::table('wechat_sstz')->where(['id' => 174])->select();
        foreach ($data as $k => $v){
            $data[$k]['son'] = Db::table('wechat_sstz')->where(['pid' => $v['id']])->select();
        }
      $this->assign('data',$data);
        return view();
    }
}